package cn.ucai.day07_Static_Final;

/*
 * final:不可变的
 * 1.修饰属性：初始化赋值后不能再修改
 * 2.修饰方法：不能重写
 * 3.修饰类：不能继承，同时意味着所有方法不能重写
 * 
 */

public class Student {
    // static final初始化方式3种
    private static final int age = 24;

    private static final String base;
    static {
        base = "xqx";
    }

    // final初始化方式3种
    private final int aaa = 222;

    private final int bbb;
    {
        bbb = 333;
    }

    private final int ccc;

    public Student(int ccc) {
        this.ccc = ccc;
    }
}
